package com.heima.day2;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        String id="37048120110915789X";
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入密码：");
        while (true){
            String s = sc.next();
            if (id.endsWith(s)) {
                System.out.println("登录成功");
                break;
            } else {
                System.out.println("请重新输入密码");
            }
        }

    }
}
